package cn.merryyou.security.mappers;


import cn.merryyou.security.entity.po.LoginUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

public interface UserDao extends BaseMapper<LoginUser> {

    /**
     * 根据登录名查询用户
     *
     * @param username
     * @return cn.merryyou.security.entity.po.LoginUser
     * @date 16:31 2018/12/19
     */
    @Select("select id, user_name,password from t_user where user_name = #{username}")
    LoginUser findByUsername(String username);
}